package com.weilive.platform;

public class PlatformConstants {
	
	/**
	 * 服务器状态
	 */
	public static final int SERVER_STATUS_OFFLINE = 0;			// 离线			
	public static final int SERVER_STATUS_IDLE = 1;				// 空闲
	public static final int SERVER_STATUS_BUSY = 2;				// 拥挤
	public static final int SERVER_STATUS_FULL = 3;				// 爆满
	
	public static final int SERVER_STATUS_FLAG_NEW = 4;			// 新服位，设为新服:status | SERVER_STATUS_NEW_TAG

	public static final int SERVER_STATUS_NEW_OFFLINE = 4;		// 新服-离线
	public static final int SERVER_STATUS_NEW_IDLE = 5;			// 新服-空闲
	public static final int SERVER_STATUS_NEW_BUSY = 6;			// 新服-拥挤
	public static final int SERVER_STATUS_NEW_FULL = 7;			// 新服-爆满
	
	public static final long SERVER_SYNC_OFFLINE_MILSECOND = 300000L; 	// 服务器离线时间间隔
	
	public static final long SERVER_SIGN_VALID_INTERVAL = 365 * 24 * 3600 * 1000L;		// 签名生效时间间隔
	
	/**
	 * Token类型
	 */
	public static final int TOKEN_TYPE_FORGET_PWD = 1;				// 忘记密码token
	public static final long TOKEN_TYPE_FORGET_PWD_EXPIRED = 3*24*60*60*1000;		// 忘记密码token的有效时间
	
	/**
	 * 订单状态
	 */
	public static final int ORDER_STATUS_FAILED = -2;		// 订单失败
	public static final int ORDER_STATUS_CANCEL = -1;		// 订单取消
	public static final int ORDER_STATUS_WAIT = 0;			// 订单等待中
	public static final int ORDER_STATUS_PAID = 1;			// 订单已支付,未通知
	
	/**
	 * 礼卷状态
	 */
	public static final int GIFT_STATUS_CANCEL = -1;		// 礼卷作废
	public static final int GIFT_STATUS_UNUSE = 0;			// 礼卷未使用
	public static final int GIFT_STATUS_USED = 1;			// 礼卷已使用
}
